/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.lottery.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 微信抽奖助手-素材管理模块Entity
 * @author 黄茂展
 * @version 2019-07-31
 */
public class Material extends DataEntity<Material> {
	
	private static final long serialVersionUID = 1L;
	private String openid;		// 用户唯一标识
	private String image;		// 图片素材url
	private WechatUser wechatUser;

	public Material() {
		super();
	}

	public Material(String id){
		super(id);
	}

	@Length(min=1, max=64, message="用户唯一标识长度必须介于 1 和 64 之间")
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	@Length(min=1, max=255, message="图片素材url长度必须介于 1 和 255 之间")
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public WechatUser getWechatUser() {
		return wechatUser;
	}

	public void setWechatUser(WechatUser wechatUser) {
		this.wechatUser = wechatUser;
	}
	
}